<?php
$content = $_POST["content"];
$username = $_POST["username"];
// var_dump( $content , $username );

if  ($user_id<1){
    die('请先登录');
}

if (trim($content) == '' or trim($username) == ''){
    echo '不能输入空格';
    exit;
}
if ($username == "admin" or $username == "root" or $username == "领导人"){
    echo '不能输入敏感词';
    exit;
}

include "db.php";

// 插入数据
$sql = "INSERT INTO `liu`(`content`, `username`) VALUES ('$content','$username')";


$res = $db->read($sql);


// 跳转到原来位置
header("location:bootstrap.php")
?>